package com.vrv.im.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vrv.im.domain.RoleBean;
import com.vrv.im.persistence.RoleMapper;
import com.vrv.im.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService{

	@Autowired
	public RoleMapper roleMapper;

	public RoleBean getRoleNameByRoleID(long roleID) {
		if(roleID>0){
			return roleMapper.getRoleNameByID(roleID);
		}
		else
			return null;
	}

	public List<RoleBean> getAllRole() {
		return roleMapper.getAllRole();
	}



}
